package com.zhs.study.task;

import lombok.extern.slf4j.Slf4j;

/**
 * @author zhenghuisheng
 * @date : 2023/3/22
 */

@Slf4j
public class Task implements Runnable {

    public int i;
    public int j;

    public Task(int i,int j){
        this.i = i;
        this.j = j;
    }

    //run方法中写具体要干的事情，如上传文件，异步消费等
    @Override
    public void run() {
        System.out.println("==========当前线程名称为：" + Thread.currentThread().getName() + "：当前值为：" + (i + j));
    }

}

